#include "PlayState.h"
#include "GameState.h"
#include "GameEngine.h"
#include "MenuState.h"

namespace Advanced2D
{
	CPlayState CPlayState::m_PlayState;

	void CPlayState::Init()
	{
		playstate=new Texture();
		playstate->Load("187.jpg");
		
	}

	void CPlayState::Cleanup()
	{
	}

	void CPlayState::Pause()
	{
		
	}

	void CPlayState::Resume()
	{
		
	}

	void CPlayState::HandleEvents(CGameEngine* game)
	{
		
	}

	void CPlayState::Update(CGameEngine* game)
	{
		if (game->getInputHandler()->IsKeyDown(DIK_ESCAPE))
		{
			
		}
	}

	void CPlayState::Draw(CGameEngine* game)
	{
		game->getSpriteHandler()->Draw(playstate->GetTexture(),NULL,NULL,NULL,D3DCOLOR_XRGB(255,255,255));
	}

}



